/*
 * Name: Minh-Tuan ta
 */

package beans;

import java.sql.Timestamp;;

/*
 * Author: Minh-Tuan Ta
 * Date: 11/06/11
 * Class: Content
 * This class serves as the data transfer object for Content table
 */
public class Content {
	private int contentid;
	private int userid;
	private int contenttypeid;
	private String contenttitle;
	private String content;
	private Timestamp datecreated;
	private int extra;
	private int status;
	private User user;
	private String formattedDateCreatedString;
	
	public int getContentID() {
		return contentid;
	}
	public void setContentID(int contentid) {
		this.contentid = contentid;
	}
	public int getUserID() {
		return userid;
	}
	public void setUserID(int userid) {
		this.userid = userid;
	}
	public int getContentTypeID() {
		return contenttypeid;
	}
	public void setContentTypeID(int contenttypeid) {
		this.contenttypeid = contenttypeid;
	}
	public String getContentTitle() {
		return contenttitle;
	}
	public void setContentTitle(String contenttitle) {
		this.contenttitle = contenttitle;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Timestamp getDateCreated() {
		return datecreated;
	}
	public void setDateCreated(Timestamp datecreated) {
		this.datecreated = datecreated;
	}
	public int getExtra() {
		return extra;
	}
	public void setExtra(int extra) {
		this.extra = extra;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public User getUser()
	{
		return user;
	}
	public void setUser(User user)
	{
		this.user = user;
	}
	
	public void setFormattedDateCreatedString(String fs)
	{
		this.formattedDateCreatedString = fs;
	}
	
	public String getFormattedDateCreatedString()
	{
		return formattedDateCreatedString;
	}
}